package com.pos.service.impl;

import com.pos.dao.RoleDAO;
import com.pos.pojo.Role;
import com.pos.pojo.Users;
import com.pos.service.RoleService;

import java.util.List;
import java.util.Set;

public class RoleServiceImpl implements RoleService {
    RoleDAO roleDAO;
    @Override
    public Set<String> listRoleNames(String userID) {
        return roleDAO.listRoleNames(userID);
    }

    @Override
    public List<Role> listRoles(String userID) {
        return roleDAO.listRoles(userID);
    }

    @Override
    public List<Role> listRoles(Users users) {
        return roleDAO.listRoles(users);
    }
}
